package com.zl.hyzg.controller;

import com.zl.hyzg.domain.MoreInformation;
import com.zl.hyzg.service.MoreInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/more")
public class MoreInformationController {
    @Autowired
    private MoreInformationService moreInformationService;
    @PostMapping("/add")
    public String addMore(@RequestBody MoreInformation moreInformation){
       int result = moreInformationService.addMore(moreInformation);
       if(result==1){
           return "success";
       }else{
           return "fail";
       }
    }
}
